package cn.liuxiany.alibaba.consumer.controller;

//import org.apache.shenyu.client.springcloud.annotation.ShenyuSpringCloudClient;
import org.springframework.web.bind.annotation.*;

/**
 * shenyu demo
 * 将服务暴露给shenyu网关
 *
 * @author liuxiany
 * @date 2023/09/21
 */
/*@RestController
@RequestMapping("/shenyu-demo")
public class ShenYuDemoController {

    @PostMapping("/save")
    public UserOrder save(@RequestBody final UserOrder userOrder) {
        userOrder.setShoppingName("hello world save order");
        return userOrder;
    }

    @GetMapping("/findById")
    public UserOrder findById(@RequestParam("id") final Integer id) {
        UserOrder userOrder = new UserOrder();
        userOrder.setId(id);
        userOrder.setShoppingName("hello world findById");
        return userOrder;
    }
}*/
